package com.hz.web.service.impl;

import com.hz.web.dao.CompanyBaseInfoMapper;
import com.hz.web.dao.CompanyEmployeeStatusMapper;
import com.hz.web.entity.CompanyBaseInfo;
import com.hz.web.entity.CompanyEmployeeStatus;
import com.hz.web.service.ICompanyBaseService;
import com.hz.web.service.ICompanyEmployeeStatusService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class CompanyEmployeeStatusImpl implements ICompanyEmployeeStatusService {

    @Resource
    private CompanyEmployeeStatusMapper companyEmployeeStatusMapper;


    @Override
    public int insertSelective(CompanyEmployeeStatus entity) {
        return companyEmployeeStatusMapper.insertSelective(entity);
    }

    @Override
    public int insert(CompanyEmployeeStatus entity) {
        return companyEmployeeStatusMapper.insertSelective(entity);
    }

    @Override
    public int updateById(CompanyEmployeeStatus entity) {
        return companyEmployeeStatusMapper.updateByPrimaryKeySelective(entity);
    }

    @Override
    public List<CompanyEmployeeStatus> queryList(Map<String, Object> map) {
        return null;
    }

    @Override
    public int queryCount(Map<String, Object> map) {
        return 0;
    }

    @Override
    public CompanyEmployeeStatus selectByCompanyId(Long companyId) {
        return companyEmployeeStatusMapper.selectByCompanyId(companyId);
    }
}
